package 责任链模式例子;

/**
 * Created by lilei on 2016/3/24.
 */
public class WorkerA extends Worker {
    public WorkerA(Worker worker) {
        this.worker = worker;
    }

    @Override
    public void handle(String name) {
        if("workerA".equals(name)) {
            System.out.println("报告老板，workerA正在处理！");
            return;
        }
        next(name);
    }
}
